/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.modelo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.*;

/**
 *
 * @author Gilberto
 */
@Entity
@Table(name = "r06")
@NamedQueries({
    @NamedQuery(name = "R06.findAll", query = "SELECT r FROM R06 r")})
public class R06 implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ID")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "ID_OPERADOR")
    private int idOperador;
    @Basic(optional = false)
    @Column(name = "ID_IMPRESSORA")
    private int idImpressora;
    @Column(name = "ID_ECF_CAIXA")
    private Integer idEcfCaixa;
    @Column(name = "SERIE_ECF")
    private String serieEcf;
    @Column(name = "COO")
    private Integer coo;
    @Column(name = "GNF")
    private Integer gnf;
    @Column(name = "GRG")
    private Integer grg;
    @Column(name = "CDC")
    private Integer cdc;
    @Column(name = "DENOMINACAO")
    private String denominacao;
    @Column(name = "DATA_EMISSAO")
    @Temporal(TemporalType.DATE)
    private Date dataEmissao;
    @Column(name = "HORA_EMISSAO")
    private String horaEmissao;
    @Column(name = "SINCRONIZADO")
    private Character sincronizado;
    @Column(name = "HASH_TRIPA")
    private String hashTripa;
    @Column(name = "HASH_INCREMENTO")
    private Integer hashIncremento;
    @OneToMany(mappedBy = "idR06")
    private List<R07> r07List = new ArrayList<>();

    public R06() {
    }

    public R06(Integer id) {
        this.id = id;
    }

    public R06(Integer id, int idOperador, int idImpressora) {
        this.id = id;
        this.idOperador = idOperador;
        this.idImpressora = idImpressora;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getIdOperador() {
        return idOperador;
    }

    public void setIdOperador(int idOperador) {
        this.idOperador = idOperador;
    }

    public int getIdImpressora() {
        return idImpressora;
    }

    public void setIdImpressora(int idImpressora) {
        this.idImpressora = idImpressora;
    }

    public Integer getIdEcfCaixa() {
        return idEcfCaixa;
    }

    public void setIdEcfCaixa(Integer idEcfCaixa) {
        this.idEcfCaixa = idEcfCaixa;
    }

    public String getSerieEcf() {
        return serieEcf;
    }

    public void setSerieEcf(String serieEcf) {
        this.serieEcf = serieEcf;
    }

    public Integer getCoo() {
        return coo;
    }

    public void setCoo(Integer coo) {
        this.coo = coo;
    }

    public Integer getGnf() {
        return gnf;
    }

    public void setGnf(Integer gnf) {
        this.gnf = gnf;
    }

    public Integer getGrg() {
        return grg;
    }

    public void setGrg(Integer grg) {
        this.grg = grg;
    }

    public Integer getCdc() {
        return cdc;
    }

    public void setCdc(Integer cdc) {
        this.cdc = cdc;
    }

    public String getDenominacao() {
        return denominacao;
    }

    public void setDenominacao(String denominacao) {
        this.denominacao = denominacao;
    }

    public Date getDataEmissao() {
        return dataEmissao;
    }

    public void setDataEmissao(Date dataEmissao) {
        this.dataEmissao = dataEmissao;
    }

    public String getHoraEmissao() {
        return horaEmissao;
    }

    public void setHoraEmissao(String horaEmissao) {
        this.horaEmissao = horaEmissao;
    }

    public Character getSincronizado() {
        return sincronizado;
    }

    public void setSincronizado(Character sincronizado) {
        this.sincronizado = sincronizado;
    }

    public String getHashTripa() {
        return hashTripa;
    }

    public void setHashTripa(String hashTripa) {
        this.hashTripa = hashTripa;
    }

    public Integer getHashIncremento() {
        return hashIncremento;
    }

    public void setHashIncremento(Integer hashIncremento) {
        this.hashIncremento = hashIncremento;
    }

    public List<R07> getR07List() {
        return r07List;
    }

    public void setR07List(List<R07> r07List) {
        this.r07List = r07List;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof R06)) {
            return false;
        }
        R06 other = (R06) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.com.classes.R06[ id=" + id + " ]";
    }
    
}
